export const LayoutPlugin = {

  install: function (Vue, options) {

    Vue.prototype.getTableHeight = function (...restElementHeight) {


      let windowHeight = this.$store.state.app.windowSize.height
      let mainHeaderHeight = this.$store.state.app.windowSize.mainHeaderHeight
      let navBarHeight = this.$store.state.app.windowSize.navBarHeight
      let mainContainerPadding = this.$store.state.app.windowSize.mainContainerPadding


      var pagerHeight = global.constants.PAGINATION_HEIGHT;


      var restHeight = 0

      for (var i in restElementHeight) {
        restHeight = restHeight + restElementHeight[i]
      }

      var h = (windowHeight - mainHeaderHeight - navBarHeight - pagerHeight - restHeight - mainContainerPadding * 2) - restHeight

      return h
    }
  }
}
